package org.x.casemodule.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.lang.Long;
import java.util.Date;
import java.lang.Object;
import java.lang.String;
import java.lang.Integer;

/**
 * 生成文书表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(value = "generated_document", dataSource = "caseDS")
public class GeneratedDocumentEntity {

    /**
     * 文书ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 关联案件ID
     */
    @Column(value = "case_id")
    private Long caseId;

    /**
     * 使用模板ID
     */
    @Column(value = "template_id")
    private Long templateId;

    /**
     * 文书标题
     */
    @Column(value = "document_title")
    private String documentTitle;

    /**
     * 文书内容(HTML格式)
     */
    @Column(value = "document_content")
    private String documentContent;

    /**
     * 当前版本号
     */
    @Column(value = "current_version")
    private Integer currentVersion;

    /**
     * 文书状态
     */
    @Column(value = "status")
    private Object status;

    /**
     * 签名状态
     */
    @Column(value = "sign_status")
    private Object signStatus;

    @Column(value = "create_time")
    private Date createTime;

    @Column(value = "update_time")
    private Date updateTime;

    /**
     * 最后编辑时间
     */
    @Column(value = "last_edit_time")
    private Date lastEditTime;


}
